CC=g++
CFLAGS=-O3 `sdl-config --cflags` -I../common -I../external/glm-0.9.2.6 -I../external/gl3w/include
LDFLAGS=-L../external/glew-1.5.8/lib -lopengl32 -lglu32 `sdl-config --libs` -lSDL_image
OTHERFLAGS=-g -combine
SOURCES=tutorial06.cpp ../common/shader.cpp ../common/texture.cpp ../common/controls.cpp ../common/sdlapp.cpp ../external/gl3w/src/gl3w.c
EXECUTABLE=tutorial-06.exe

#all: $(SOURCES) $(EXECUTABLE)
all:
	$(CC) $(OTHERFLAGS) $(SOURCES) $(CFLAGS) $(LDFLAGS) -o $(EXECUTABLE)

clean-object:
	rm -f *.o
	
clean-executable:
	rm -f $(EXECUTABLE);

clean: clean-object clean-executable

